package io.sage.modules.statistics.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.sage.modules.statistics.dao.BStatisticsWindSpeedMapper;
import io.sage.modules.statistics.entity.BStatisticsWindSpeed;
import io.sage.modules.statistics.service.BStatisticsWindSpeedService;

/**
 * 传感器风速服务
 * @author xjh
 *
 */
@Service("statisticsWindSpeedService")
public class BStatisticsWindSpeedServiceImpl implements BStatisticsWindSpeedService {


	@Autowired
	private BStatisticsWindSpeedMapper statisticsWindSpeedMapper;

	@Override
	public BStatisticsWindSpeed selectById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteBatchIds(List<Integer> asList) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<BStatisticsWindSpeed> selectStatisticsWindSpeedList(Map<String, Object> params) {
		return statisticsWindSpeedMapper.selectStatisticsWindSpeedList(params);
	}

	@Override
	public int insert(BStatisticsWindSpeed statisticsWindSpeed) {
		statisticsWindSpeed.setCreateTime(new Date());
		statisticsWindSpeed.setIsDeleted(0);
		statisticsWindSpeed.setIsUsed(1);
		return statisticsWindSpeedMapper.insertSelective(statisticsWindSpeed);
	}

	@Override
	public int saveWindSpeedList(List<BStatisticsWindSpeed> list) {
		return statisticsWindSpeedMapper.saveWindSpeedList(list);
	}

	@Override
	public List<BStatisVo> selectListByWarehouseId(Map params) {
		return statisticsWindSpeedMapper.selectListByWarehouseId(params);
	}

}
